home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1995 June: Reference Library / Dev.CD Jun 95 / Dev.CD Jun 95.toast / What's New? / New System Software Extensions / QuickDraw 3D ß / Programming / SampleCode / Modeller ƒ / Modeller_main.c < prev    next >
Encoding:
C/C++ Source or Header  |  1995-04-20  |  1.2 KB  |  65 lines  |  [TEXT/MPS ]

  1. //        modeller_main.c
  2. //
  3. //        main function for the modeller application
  4. //
  5. //        Author:        Rob Johnston
  6. //        Date:        Tuesday, January 14, 1992
  7. //
  8. //        Copyright © 1992-94 Apple Computer, Inc., All Rights Reserved
  9. //
  10. //
  11.  
  12.  
  13.  
  14. #include <ToolUtils.h>
  15.  
  16. #define    _AllocateGlobals_
  17.  
  18. #include "Modeller_globals.h"
  19. #include "Modeller_prototypes.h"
  20.  
  21. #include "Modeller_AEVT.h"
  22.  
  23. #undef _AllocateGlobals_
  24.  
  25. #include "Modeller_main.h"
  26. #include "Modeller_initialize.h"
  27. #include "Modeller_AEVT.h"
  28. #include "Modeller_event.h"
  29. #include "Modeller_errors.h"
  30. #include "Modeller_podium.h"
  31.  
  32. //#include "MyErrorHandler.h"
  33.  
  34.  
  35.  
  36. main(void)
  37.  
  38. {
  39.     const short kNumMoreMasters = 10 ;
  40.     
  41.     InitializeToolbox();
  42.     
  43.     SetCursor(*GetCursor(watchCursor)) ;
  44.     
  45. #ifdef PODIUM_APP
  46.     Podium_Init() ;    
  47. #endif
  48.  
  49.     SplashSetUp() ;                            // put up a pretty picture to while away the time
  50.     
  51.     InitializeAppStuff( kNumMoreMasters ) ;    // call maxApplZone and moremasters
  52.     
  53.     InitializeGlobals();                    // init our app globals
  54.     InitAEStuff();                            // install our appleevent handlers
  55.     SetupMenus();                            // setup them menus    
  56.     
  57.     SetCursor(&qd.arrow) ;                    // set up the cursor to something useful
  58.     
  59.     SplashTearDown() ;                        // get rid of the splash screen
  60.  
  61.     EventLoop();                            // process events until the user quits
  62.  
  63.     DeallocateGlobals();
  64. }
  65.